<?php

include("netronix.php");

$fp = fsockopen("localhost", 5332, $errno, $errstr, 30);
if (!$fp) {
    echo "$errstr ($errno)<br />\n";
} else {
fwrite($fp, C_Login_User(array(0x31, 0x32, 0x33, 0x34, 0x00)));
usleep(50*1000);
fwrite($fp, C_SetAutoReaderConfig(array(0x01, 0x00, 0x01, 0x011, 0x01)));
usleep(50*1000);
fwrite($fp, C_Reset());
usleep(50*1000);
fclose($fp);
}

?>